home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / programming / other / gtlayout / source / ltp_drawpalette.c < prev    next >
C/C++ Source or Header  |  1999-04-19  |  560b  |  26 lines

  1. /*
  2. **    GadTools layout toolkit
  3. **
  4. **    Copyright © 1993-1998 by Olaf `Olsen' Barthel
  5. **        Freely distributable.
  6. **
  7. **    :ts=4
  8. */
  9.  
  10. #ifndef _GTLAYOUT_GLOBAL_H
  11. #include "gtlayout_global.h"
  12. #endif
  13.  
  14. #include "Assert.h"
  15.  
  16. VOID
  17. LTP_DrawPalette(struct LayoutHandle *Handle,struct ObjectNode *Node)
  18. {
  19.     struct RastPort *rp = &Handle->RPort;
  20.  
  21.     LTP_SetAPen(rp,Node->Current);
  22.     LTP_FillBox(rp,Node->Left + 3,Node->Top + 2,Node->Special.Palette.IndicatorWidth - 6,Node->Height - 4);
  23.  
  24.     LTP_DrawBevel(Handle,Node->Left,Node->Top,Node->Special.Palette.IndicatorWidth,Node->Height);
  25. }
  26.